package com.kunya.product.dao;

import com.kunya.product.po.FriendLink;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FriendLinkMapper {

    int insert(@Param("record")FriendLink record, @Param("table_prefix") String table_prefix);

    int updateByPrimaryKey(@Param("record")FriendLink record, @Param("table_prefix") String table_prefix);

    //删:
    int deleteByPrimaryKey(@Param("friendLinkId")Long friendLinkId, @Param("table_prefix") String table_prefix);

    //增
    int insertSelective(@Param("record")FriendLink record,@Param("table_prefix") String table_prefix);

    //查
    FriendLink selectByPrimaryKey(@Param("friendLinkId")Long friendLinkId, @Param("table_prefix") String table_prefix);

    //改
    int updateByPrimaryKeySelective(@Param("record")FriendLink record,@Param("table_prefix") String table_prefix);

    //返回后台查询列表
    List<FriendLink> selectListByFriendLinkId(@Param("friendLinkId")Long friendLinkId, @Param("table_prefix") String table_prefix);
}